package com.team.engine.permission.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.team.engine.basedao.BaseEntity;

/**
 * 用户组，角色关联，表实体
 * @author MengLH
 * @data 2010-8-4
 */
@Entity
@Table(name="t_usergroup_role")
public class TUsergroupRole extends BaseEntity {
	
	/**
	 * 标识符主键
	 */
	@Id
	private Long Id;

	/**
	 * 用户组Id
	 */
	@Column(name="usergroup_id")
	private int usergroupId;
	
	/**
	 * 角色Id
	 */
	@Column(name="role_id")
	private int roleId;

	public Long getId() {
		return Id;
	}

	public void setId(Long id) {
		Id = id;
	}
	
	public int getUsergroupId() {
		return usergroupId;
	}

	public void setUsergroupId(int usergroupId) {
		this.usergroupId = usergroupId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	
}
